def common_assert(resp, status_code, success, code, message):
    """公共断言的方法"""
    assert resp.status_code == status_code
    assert resp.json().get('success') == success
    assert resp.json().get('code') == code
    assert resp.json().get('message') == message